<div id="updateAppointmentForm">
	<form action="index.php?pagename=Appointment&action=update" method="POST">
		<div id="updateAppointmentTitle">
			B.B.DETAILS
		</div>
		<div class="updatePoint">
			<div class="titlePoint">
				When
			</div>
			<div class="infoPoint" valign="center">
				 %start% - %end%
			</div>
		</div>
		<div class="updatePoint">
			<div class="titlePoint">
				Edit start
			</div>
			<div class="infoPoint">
				 <select id="startHour" name="startHour">
					<option></option>
					<!--foreach_hour-->
						<option value="%numberHour%">%numberHour%</option>
					<!--endforeach_hour-->
				 </select>
				 <select id="startMinute" name="startMinute">
					<option></option>
					<!--foreach_minute-->
						<option value="%numberMinute%">%numberMinute%</option>
					<!--endforeach_minute-->
				 </select>
				 <!--if{constant(TIME_TYPE=12)}-->
				 <select id="startPartDay" name="startPartDay">
					<option></option>
					<option value="am">AM</option>
					<option value="pm">PM</option>
				 </select>
				<!--endif{constant(TIME_TYPE=12)}-->
			</div>
		</div>
		<div class="updatePoint">
			<div class="titlePoint">
				Edit end
			</div>
			<div class="infoPoint">

				 <select id="endHour" name="endHour">
					<option></option>
					<!--foreach_hour-->
						<option value="%numberHour%">%numberHour%</option>
					<!--endforeach_hour-->
				 </select>
				 <select  id="endMinute" name="endMinute">
					<option></option>
					<!--foreach_minute-->
						<option value="%numberMinute%">%numberMinute%</option>
					<!--endforeach_minute-->
				 </select>
				 <!--if{constant(TIME_TYPE=12)}-->
				 <select id="endPartDay" name="endPartDay">
					<option></option>
					<option value="am">AM</option>
					<option value="pm">PM</option>
				 </select>
				<!--endif{constant(TIME_TYPE=12)}-->

			</div>
		</div>
		<div class="updatePoint">
			<div class="titlePoint">
				Notes
			</div>
			<div  class="infoPoint" style="background-color: white">
				<input  name="description" id="updateDescriptionAppointment" type="text" value="%description%">
			</div>
		</div>	
		<div class="updatePoint">
			<div class="titlePoint">
				Employee
			</div>
			<div class="infoPoint">
				<select id="employee" name="employee" style="width: 145px; height: 20px; margin-top: 3px;">
					<option value="%employee%">%nameemployee%</option>
					<!--if{!empty(employees)}-->	
						<!--foreach_employees-->
							<option value="%employees%">%name%</option>
						<!--endforeach_employees-->
					 <!--endif{!empty(employees)}-->

				</select> 
			</div>
		</div>
		<div class="updatePoint">
			Submitted - %submitted%	
		</div>
		<div class="updatePoint">
			<div class="titlePoint">
				<input name="id" type="hidden" value="%idappointment%">
				<input type="hidden" id="updateAppointmentId" value="%idappointment%"></input>
				<input class="appointmentSubmit" type="submit" value="UPDATE" onClick="updateAppointment(); return false;">
			</div>
			<div class="infoPoint" style="text-align: left;">		
				<input id="updateOccurance" name="occurance" value="all" type="checkbox" style="margin-left: 5px;"> - update all ocurrance
			</div>
		</div>

	</form>
	<form action="index.php?pagename=Appointment&action=delete" method="POST">
		<div class="updatePoint">
			<div class="titlePoint">
				<input id="deleteAppointmentId" name="id" type="hidden" value="%idappointment%">
				<input class="appointmentSubmit" id="deleteSubmit" name="deleteSubmit" type="submit" value="DELETE" onClick="deleteAppointment(); return false;">
			</div>
			<div class="infoPoint" style="text-align: left;">	
				<input id="deleteOccurance" name="deleteOccurance" value="all" type="checkbox" style="margin-left: 5px;"> - delete all ocurrance
			</div>
		</div>
	</form>		

</div>
